package com.dr.springboot.starter.entity;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

//todo annotation spring 将配置信息注入进来，制定配置文件的位置、前缀
@Data
@Configuration
@ConfigurationProperties(prefix = "com.dr")
@PropertySource(value = "classpath:resource.properties")
public class Resource {
    private String username;
    private String web;
    private String language;
}
